home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_perl.idb / usr / freeware / catman / p_man / cat3 / Thread::Signal.Z / Thread::Signal
Encoding:
Text File  |  1998-10-28  |  1.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      TTTThhhhrrrreeeeaaaadddd::::::::SSSSiiiiggggnnnnaaaallll((((3333))))22223333////JJJJuuuullll////99998888    ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222))))TTTThhhhrrrreeeeaaaadddd::::::::SSSSiiiiggggnnnnaaaallll((((3333))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       Thread::Signal - Start a thread which    runs signal handlers
  10.       reliably
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           use Thread::Signal;
  14.  
  15.           $SIG{HUP}    = \&some_handler;
  16.  
  17.  
  18.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.       The Thread::Signal module starts up a    special    signal handler
  20.       thread.  All signals to the process are delivered to it and
  21.       it runs the associated $SIG{FOO} handlers for    them. Without
  22.       this module, signals arriving    at inopportune moments (such
  23.       as when perl's internals are in the middle of    updating
  24.       critical structures) cause the perl code of the handler to
  25.       be run unsafely which    can cause memory corruption or worse.
  26.  
  27.      BBBBUUUUGGGGSSSS
  28.       This module changes the semantics of signal handling
  29.       slightly in that the signal handler is run separately    from
  30.       the main thread (and in parallel with    it). This means    that
  31.       tricks such as calling die from a signal handler behave
  32.       differently (and, in particular, can't be used to exit
  33.       directly from    a system call).
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 10/23/98)
  64.  
  65.  
  66.  
  67.